package com.hanson.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SeckillGoodsBean {
    private Integer id;

    private Integer goodsId;

    private String goodsName;

    private String goodsImage;

    private Integer goodsPrice;

    private Integer seckillPrice;

    private Integer stock = 0;

    private Integer sales = 0;

    private Integer num;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date stopTime;

    private Integer timeType;

    private Integer status;

    private Integer isShow;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /****/
    private Integer totalNum;
    private String goodsAttr;

    private String webGoodsPrice;

    private String webSeckillPrice;

    private int usableNum = 0;
    private String percent;
}